Adding function to a varieble in python

41

def plus_one(number):
    return number + 1

add_one = plus_one
add_one(5)

Comments

Submit
0 Comments